package org.example.hikvisiontest.controller;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.example.hikvisiontest.service.HikVisionService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Slf4j
@Controller
public class CameraController {
    @Resource
    private HikVisionService hikVisionService;
    @ResponseBody
    @RequestMapping("/get")
    public String get(int ip4){
        hikVisionService.catchImageByIp("10.255.2."+ip4);
        log.info("进入方法");
       return "hikvisiontest";
    }

}
